
<html>
	<head>
		<title></title>
	</head>
	<body>
		<div>
		<h2>编辑新闻</h2>
		<div style="color: red;">
			<?php echo validation_errors(); ?>
		</div>
		
		
		<?php echo form_open('news/edit/'.$news[0]['id']) ?>
			<div>标题:</div>
			<input type="text" name="title" id="title" value="<?php echo $news[0]['title']; ?>" /></br>
			<div>
			内容:
			</div><textarea name="text" rows="5" cols="15" ><?php echo $news[0]['text']; ?></textarea></br>
			<input type="hidden" name="id" id="id" value="<?php echo $news[0]['id']; ?>" />
			<input type="submit" name='update' value="update"/>
		</form>
		</div>

	</body>
</html>

